package com.lovegu.basic;

/**
 * @author 老顾
 * @title: ForLoop
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/20 15:24
 */
public class ForLoop {
    public static void main(String[] args) {
        int result = 0;
        for (int i = 1; i <= 100; i++) {
            result += i;
        }
        System.out.println("result=" + result);
    }
}
